<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>MyDate_ (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">i18n.DateTimeParse.MyDate_</span>
        <span>Extends</span>
        <span class="fn-name">
          
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    This class hold the intermediate parsing result. After all fields are
consumed, final result will be resolved from this class.

  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_i18n_datetimeparse.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/i18n/datetimeparse.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.i18n.DateTimeParse.MyDate_</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
</table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.i18n.DateTimeParse.MyDate_(<span></span>)
  </div>



<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_i18n_DateTimeParse_MyDate_.html">
              goog.i18n.DateTimeParse.MyDate_
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.MyDate_.prototype.calcDate_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">calcDate_<span class="args">(<span class="arg">date</span>,&nbsp;<span class="arg">validation</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Based on the fields set, fill a Date object. For those fields that not
set, use the passed in date object's value.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type">goog.date.DateLike</span>
        <div class="entryOverview">Date object to be filled.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">validation</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
        <div class="entryOverview">If true, input string will be checked to make
    sure it is valid.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            false if fields specify a invalid date.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line1026">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.i18n.DateTimeParse.MyDate_.prototype.setTwoDigitYear_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setTwoDigitYear_<span class="args">(<span class="arg">year</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       2 digit year special handling. Assuming for example that the
defaultCenturyStart is 6/18/1903. This means that two-digit years will be
forced into the range 6/18/1903 to 6/17/2003. As a result, years 00, 01, and
02 correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond
to 1904, 1905, etc. If the year is 03, then it is 2003 if the
other fields specify a date before 6/18, or 1903 if they specify a
date afterwards. As a result, 03 is an ambiguous year. All other
two-digit years are unambiguous.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">year</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">2 digit year value before adjustment.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            disambiguated year.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line1003">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_i18n_DateTimeParse_MyDate_.html">
              goog.i18n.DateTimeParse.MyDate_
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.ampm"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">ampm</span>
        : 
     </div>


     <div class="entryOverview">
       The date's before/afternoon denominator.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line951">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.day"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">day</span>
        : 
     </div>


     <div class="entryOverview">
       The date's day of month.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line937">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.dayOfWeek"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">dayOfWeek</span>
        : 
     </div>


     <div class="entryOverview">
       The date's day of week. Sunday is 0, Saturday is 6.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line986">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.era"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">era</span>
        : 
     </div>


     <div class="entryOverview">
       The date's era.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line916">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.hours"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">hours</span>
        : 
     </div>


     <div class="entryOverview">
       The date's hour.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line944">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.milliseconds"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">milliseconds</span>
        : 
     </div>


     <div class="entryOverview">
       The date's milliseconds.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line972">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.minutes"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">minutes</span>
        : 
     </div>


     <div class="entryOverview">
       The date's minutes.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line958">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.month"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">month</span>
        : 
     </div>


     <div class="entryOverview">
       The date's month.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line930">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.seconds"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">seconds</span>
        : 
     </div>


     <div class="entryOverview">
       The date's seconds.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line965">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.tzOffset"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">tzOffset</span>
        : 
     </div>


     <div class="entryOverview">
       The date's timezone offset.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line979">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.i18n.DateTimeParse.MyDate_.prototype.year"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">year</span>
        : 
     </div>


     <div class="entryOverview">
       The date's year.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_i18n_datetimeparse.js.source.html#line923">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>










<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package i18n.DateTimeParse</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="i18n.DateTimeParse.MyDate_"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
